@import (reference) "@{cosyless}";
// 拖拉遮挡层
.layer-move{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: move;
    opacity: 0;
    filter: alpha(opacity=0);
    background-color: #fff;
    z-index: 2147483647;
}
// 弹出层遮罩
.layer-shade{
    position: fixed;
    .transparent(0,0,0,.3);
    left:0;
    top:0;
    width:100%;
    height:100%;
}
// 主体
.layer-mod{
    position: fixed;
    margin: 0;
    padding: 0;
    background-color: #fff;
    border-radius: 3px;
    &.layer-dialog{
        min-width:260px;
    }
    &.layer-msg{
        min-width:180px;
        .transparent(0,0,0,.5);
        color: #fff;
        text-align: center;
        .layer-content{
            padding: 20px;
        }
    }
    &.layer-loading{
        background: none;
        .layer-loading1{
            background: url(../images/layer-loading1.gif) no-repeat center 3px;
            padding: 30px 0 0;
            min-width: 70px;
            text-align: center;
        }
        .layer-loading2{
            padding: 45px 0 0 0;
            color: #fff;
            min-width: 40px;
            &:before{
                content: '';
                position: absolute;
                background: url(../images/layer-loading2.gif) no-repeat center;
                top:0;
                left:50%;
                margin-left: -18px;
                width:37px;
                height:37px;
            }
        }
        .layer-loading3{
            padding: 40px 0 0 0;
            color: #fff;
            min-width: 40px;
            &:before{
                content: '';
                position: absolute;
                top:0;
                left:50%;
                margin-left: -16px;
                background: url(../images/layer-loading3.gif) no-repeat center;
                width:32px;
                height:32px;
            }
        }
    }
    &.layer-tips{
        background: none;
        position: absolute;
        .layer-content{
            padding: 5px 10px;
            overflow: visible;
            background: #fff;
            border: 1px solid #ccc;
            border-radius: 3px;
            color: #333;
            &.layer-tips-right{
                margin-left: 5px;
                .make-arrow(#ccc,#fff,left,5px,1px);
            }
            &.layer-tips-left{
                margin-right: 5px;
                .make-arrow(#ccc,#fff,right,5px,1px);
            }
            &.layer-tips-bottom{
                margin-top: 5px;
                .make-arrow(#ccc,#fff,top,5px,1px);
            }
            &.layer-tips-top{
                margin-bottom: 5px;
                .make-arrow(#ccc,#fff,bottom,5px,1px);
            }
        }
    }
}
// 头部
.layer-hd{
    padding: 0 80px 0 20px;
    min-width: 160px;//ie7下面宽度问题
    height: 35px;
    line-height: 35px;
    background:#3468d5 url(../images/tips-topbg.jpg) no-repeat left center;
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    border-radius: 2px 2px 0 0;
    .text-overflow-nowrap-ellipsis();
    cursor: move;
}
// 窗口操作
.layer-win{
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 0;
    line-height: initial;
    text-align: center;
}
// 关闭
.layer-close{
    overflow: hidden;
    text-indent:-999em;
    display: inline-block;
    vertical-align: top;
    position: relative;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    font-size: 12px;
    background: url(../images/layer-close.png) no-repeat center;
    &.layer-close2{
        background: #fff url(../images/layer-close.png) no-repeat center;
        width:32px;
        height:32px;
        position: absolute;
        right:-30px;
        top:-30px;
        border-radius: 50%;
    }
}
// 弹窗底部按钮层
.layer-btn{
    padding: 12px 10px;
    text-align: center;
    background: #f5f5f5;
    a{
        display: inline-block;
        vertical-align: top;
        height: 28px;
        line-height: 28px;
        margin: 0 6px;
        padding: 0 15px;
        border: 1px solid #dedede;
        background-color: #fff;
        color: #333;
        border-radius: 2px;
        font-weight: 400;
        cursor: pointer;
        &.layer-btn-1{
            border-color: #4898d5;
            background-color: #2e8ded;
            color: #fff;
        }
        &:last-child{
            border: 1px solid #dedede;
            background-color: #fff;
            color: #333;
        }
        &.layer-btn-0{
            border-color: #4898d5;
            background-color: #2e8ded;
            color: #fff;
        }
    }
}
// 弹窗内容区
.layer-content{
    position: relative;
    padding: 20px;
    line-height: 24px;
    word-break: break-all;
    overflow: hidden;
    font-size: 14px;
    overflow-x: hidden;
    overflow-y: auto;
}
.layer-resize{
    position: absolute;
    width: 15px;
    height: 15px;
    right: 0;
    bottom: 0;
    cursor: se-resize;
}









